<?php
	$id=$_GET['id'];
	
	$hapus_det = $koneksi->exec("delete from order_detail where id_orders = '$id'");
	$hapus_order = $koneksi->exec("delete from orders where id_orders = '$id'");
	
	$url_sukses='utama.php?module=mod_order';

	if($hapus_order){
		echo "<meta http-equiv='refresh' content='0; url=$url_sukses'>";
		exit;
	}else{
		echo mysql_error();
	}
?>